<template>
    <div class="list-title">
        <div class="title">{{ text }}</div>
        <div class="more">
            <span>View All</span>
            <van-icon name="arrow" size="9" />
        </div>
    </div>
</template>

<script>
import { Icon } from 'vant'

export default {
  name: 'App',
  props: ['text'],
  components: {
    VanIcon: Icon
  }
}

</script>

<style lang="scss">
.list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px 0 16px;
    box-sizing: border-box;
    line-height: 22px;

    .title {
        font-size: 14px;
        font-weight: bold;
        color: #fff;
    }
    .more {
        font-size: 12px;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.6);

        span {
            margin-right: 6px;
        }
    }
}
</style>
